package cn.wolfcode.feign;

import cn.wolfcode.common.web.Result;
import cn.wolfcode.domain.OperateIntergralVo;
import cn.wolfcode.feign.fallBack.IntergralFeignFallBack;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;

/**
 * @author hkj
 * @email 1349091387@qq.com
 * @date 2022/1/6
 * 源码允许修改，并且本人十分乐意有 大佬 来对代码进行 随 意 调 教
 **/
@FeignClient(name = "intergral-service",fallback = IntergralFeignFallBack.class)
public interface IntergralFeignApi {
    @RequestMapping("/intergral/descIntergral")
    Result<String> descIntergral(@RequestBody  OperateIntergralVo operateIntergralVo);
    @RequestMapping("/intergral/incrIntergral")
    Result<String> incrIntergral(@RequestBody  OperateIntergralVo operateIntergralVo);
}
